<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"      
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
	
	<h:form id="conventionsView">	
		<p:dataGrid var="convention" value="#{conventionBean.objects}" columns="1" rows="12" rendered="#{identity.loggedIn}"
			paginator="false" 
			paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
			rowsPerPageTemplate="9,12,15">
			<f:facet name="header">
				<p:commandButton icon="ui-icon-plus" title="Add new" />
			</f:facet>
			<p:column>
				<p:panel header="#{convention.model}" style="text-align:center">
					<h:panelGrid columns="1" style="width:100%">
						<h:outputText value="#{convention.name}" title="#{convention.description}" />
					</h:panelGrid>
				</p:panel>
			</p:column>
	
		</p:dataGrid>
	</h:form>
</ui:composition>